#ifndef __FLASH_PARTITION_H__
#define __FLASH_PARTITION_H__

#include <soc.h>

#if defined(CONFIG_AOS_FATFS_SUPPORT_SD)
#define BOOTLOADER_PARTITION_START              0x5800000 
#else
#define BOOTLOADER_PARTITION_START              CSKY_QSPIMEM_BASE 
#endif
#define BOOTLOADER_PARTITION_SIZE               0x31000                 /* 100k bytes */

#define BOOTLOADER_PARAM_PARTITION_START        (BOOTLOADER_PARTITION_START + BOOTLOADER_PARTITION_SIZE) 
#define BOOTLOADER_PARAM_PARTITION_SIZE         0x1000                  /* 4k bytes */

#define APPLICATION_PARTITION_START             (BOOTLOADER_PARAM_PARTITION_START + BOOTLOADER_PARAM_PARTITION_SIZE)            
#define APPLICATION_PARTITION_SIZE              0xE66000                /* 14744K bytes */

#define KV_PARTITION_START                      (APPLICATION_PARTITION_START + APPLICATION_PARTITION_SIZE)       //0xE80000     
#define KV_PARTITION_SIZE                       KV_CONFIG_TOTAL_SIZE    /* 512K bytes */

#define FS_PARTITION_START                       (KV_PARTITION_START + KV_PARTITION_SIZE)      
#define FS_PARTITION_SIZE                        0x166000               //   1528KB

#if defined(CONFIG_AOS_FATFS_SUPPORT_SD)
#define WEIGHT_PARTITION_START                   (BOOTLOADER_PARTITION_START + 0x35A000) //0x35A000:monocular_lock_combine_1P5M.ini define;     
#define WEIGHT_PARTITION_SIZE                    0xA00000               //10MB
#endif

//#define FS_PARTITION_SIZE                       0xAF000               //   700KB

// #define CUSTOM_PARTITION_START                  (FS_PARTITION_START + FS_PARTITION_SIZE)            
// #define CUSTOM_PARTITION_SIZE                   0xCF000                /* 828 bytes */

int print_partiton_table(void);

#endif
